<template>
  <view>
    <view v-if="Object.keys(token).length===0">
      <my-login></my-login>
    </view>
    <view v-else>
      <my-userInfo></my-userInfo>
    </view>
  </view>
</template>

<script>
  import tabbarMixins from '@/mixins/tabbar.js'
  export default {
    mixins: [tabbarMixins],
    computed: {
      token: function() {
        return this.$store.state.token
      }
    },
    data() {
      return {

      };
    }
  }
</script>

<style lang="scss">

</style>